<template>
  <div class="mask" v-if="show"></div>
  <div class="a" v-else></div>
</template>

<script>
import bus from "@/assets/Bus.js";
export default {
  name: "",
  data() {
    return {
      show: false,
    };
  },
  mounted() {
    bus.$on("shows", (res) => {
      console.log(res);
      this.show = res;
    });
  },
  methods: {},
  computed: {},
  watch: {},
};
</script>

<style scoped>
.mask {
  width: 70%;
  height: 617px;
  background-color: rgba(0, 0, 0, 0.7);
  position: absolute;
  top: 50px;
  left: 0;
  z-index: 999999;
  transition: all 2s;
}
.a {
  width: 0%;
  height: 617px;
  background-color: rgba(0, 0, 0, 0.7);
  position: absolute;
  top: 50px;
  left: 0;
  z-index: 999999;
  transition: all 2s;
}
</style>
